﻿using System.Collections.Generic;

namespace Miao
{
    /// <summary>
    /// 轮盘赌算法的抽象实现.
    /// 赌注为 索引
    /// </summary>
    public class Roulette : Roulette<int>
    {
        public Roulette(IList<float> points) : base(points.Count)
        {
            int bet = 0;
            foreach (var point in points) AddBet(bet++, point);
        }
        public Roulette(params float[] points) : base(points.Length)
        {
            int bet = 0;
            foreach (var point in points) AddBet(bet++, point);
        }
    }
}